<template>
	<view>
		demo
		<!-- 1. 通过 navigator 标签跳转-->
		<navigator open-type="reLaunch" url="/pages/index/index">回到首页</navigator>
		<!-- 2. 通过 事件跳转 -->
		<view class="" @click="goIndex">回到首页</view>
	</view>
</template>

<script setup>
	uni.showNavigationBarLoading()
	uni.hideHomeButton()
	const goIndex = ()=>{
		uni.reLaunch({
			url:'/pages/index/index?name="zd"&&age=19'
		})
	}
</script>

<style lang="scss" scoped>
	       
</style>
